<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> 
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/onlineOrders.do"/>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="/chiptrack/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<SCRIPT language="JavaScript">
   

    function submitPage(action)
    {
        if(action == 'APPROVE')
            document.approverOrderForm.action.value = "ApproveOrder";
        else if(action == 'REJECT')
            document.approverOrderForm.action.value = "RejectOrder";
            
        document.approverOrderForm.submit();
    }

</SCRIPT>

<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>

<!-- Top Header End-->
  
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='/chiptrack/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigations start -->
<%@ include file="/jsp/sales/sales_order_menu.jsp" %>

</TD>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="/chiptrack/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="/chiptrack/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="/chiptrack/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<html:html>

<!-- from here your body starts -->
<html:form name="approverOrderForm" action="/approveOrder" method="post" type="com.scalar.chiptrack.sales.forms.SalesOrderForm">

<center><span class="NArialW">Online Order Details</span></center>
<img src="/chiptrack/jsp/includes/images/spacer.gif" height=10>
   <nested:nest property="salesOrder">
   <table border="0" width="90%" align=right>
     <tr>
       <td width="21%"><font class="NArialL">OnlineSales Order No :</font></td>
       <td width="21%" class="bodytext"><b><nested:write property="salesOrderId" /></b></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Customer Name :</font></td>
       <td width="21%" class="bodytext"><nested:write property="customerName" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Customer PO No :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="customerPO"/></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Contact Person :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="contactPerson"/></font></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Phone :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="phoneNumber" /></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Fax :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="faxNumber" /></font></td>
	   <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Email :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="email" /></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Sales Person :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="salesPerson" /></font></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.salesOrder.ShippingMethod" /> :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="shippingMethod" /></font></td>
        <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.salesOrder.ShippingAccount" /> :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="shippingAccount" /></font></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.endUser"/> :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="endUser" /></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL"></font></td>
       <td width="21%"></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Billing Address :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="billingAddress"/></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Shipping Address :</font></td>
       <td width="21%"><font class="bodytext">
            <nested:write property="shippingAddress" /></font>
       </td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr><td colsapn=6><img src="/chiptrack/jsp/includes/images/spacer.gif" height=10></td></tr>
     <tr>
       <td width="21%"><font class="NArialL">Comments :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="comments" /></font></td>
       <td width="3%">&nbsp;</td>
       <td width="21%"><font class="NArialL">Shipping Instructions :</font></td>
       <td width="21%"><font class="bodytext"><nested:write property="shippingInstructions" /></font></td>
       <td width="3%">&nbsp;</td>
     </tr>
     </nested:nest>    
     <tr><td colspan=6><img src="/chiptrack/jsp/includes/images/spacer.gif" height=20></td></tr>     
     <tr><td colspan=6><chiptrack:info styleClass="NArialL" /></td></tr>          
     <tr><td colspan=6><chiptrack:errors styleClass="NArialL" /></td></tr>        
     <tr><td colspan=6>      
      <table border="0" width="100%" bordercolor="#FFFFFF">        
	 <tr>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Line Item</font></td>
	   <td width="15%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Marketing Part #</font></td>
           <td width="15%" align="center" bgcolor="#993333"><font class="NArialL">
     		   <!-- Modified by veeru on (03/05/04) 
                <font color="#FFFFFF">Mfg Part Number</font> -->
		   <bean:message key="label.mfgPartNumber" />			
		   </td>
           <td width="10%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Request Date</font></td>
	   <td width="5%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Quantity</font></td>
	   <td width="10%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Price </font></td>
	   <td width="10%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Amount</font></td>	                  
         </tr>
         <logic:iterate id="LineItem" name="presentLineItems">
         <html:hidden name="LineItem" property="lineItemId"/>
         <tr>
	   <td width="8%" bgcolor="#DEE1E2">
                <font class="bodytext"><bean:write name="LineItem" property="lineItemNo" /></font></td>
	   <td width="15%" bgcolor="#DEE1E2">
                <font class="bodytext"><bean:write name="LineItem" property="marketingPartNo" /></font></td>
           <td width="15%" bgcolor="#DEE1E2">
                <font class="bodytext"><bean:write name="LineItem" property="manufacturingPartNo" /></font></td>
           <td width="10%" bgcolor="#DEE1E2">
                <font class="bodytext"><bean:write name="LineItem" property="requestDate"/></font></td>
	   <td width="5%" bgcolor="#DEE1E2">
                <font class="bodytext"><html:text name="LineItem" property="quantity" styleClass="txfield" size="10"/></font></td>         
	   <td width="10%" bgcolor="#DEE1E2">
                <font class="bodytext"><html:text name="LineItem" property="unitPrice" styleClass="txfield" size="10"/></font></td>
           <td width="10%" bgcolor="#DEE1E2">
                <font class="bodytext"><html:text name="LineItem" property="amount" disabled="true" styleClass="txfield" size="10"/></font></td>
         </tr>
         </logic:iterate>
        </table>        
        </td>
     </tr>     
     <tr><td colspan=6><img src="/chiptrack/jsp/includes/images/spacer.gif" height=10></td></tr>     
     <tr><td colspan=6><img src="/chiptrack/jsp/includes/images/spacer.gif" height=10></td></tr>
     <tr>
       <td colspan=6 align=center>                
            <chiptrack:restrictedLink functionality='<%=Functionality.SALES_ONLINE_ORDER%>' action='<%=User.USER_ACTION_MODIFY%>' href="javascript:submitPage('REJECT');" onmouseover="window.status='Click here to reject sales order';return true" onmouseout="window.status='';return true">     
            <img src="/chiptrack/jsp/includes/images/approve.gif" border='0'></chiptrack:restrictedLink>        
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <chiptrack:restrictedLink functionality='<%=Functionality.SALES_ONLINE_ORDER%>' action='<%=User.USER_ACTION_MODIFY%>' href="javascript:submitPage('REJECT');" onmouseover="window.status='Click here to reject sales order';return true" onmouseout="window.status='';return true">     
            <img src="/chiptrack/jsp/includes/images/reject.gif" border='0'></chiptrack:restrictedLink>
       </td>
     </tr>
   
    </table>


<input type="hidden" name="action" value="">
<html:hidden name="approverOrderForm" property="salesOrderId" />
</html:form>
</html:html>
<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="/chiptrack/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</HTML>
